package com.tianhui.consignortwofei.other;

import com.tianhui.consignortwofei.mvp.model.enty.message.MessageInfo;
import com.tianhui.consignortwofei.mvp.model.enty.OrderInfo;
import com.tianhui.consignortwofei.mvp.model.enty.OrderOperateInfo;
import com.tianhui.consignortwofei.mvp.model.enty.detailItem.DetailInfo;
import com.tianhui.consignortwofei.mvp.model.enty.detailItem.DetailItemInfo;
import com.tianhui.consignortwofei.pattern.orderOprate.impl.DeliveryConfirmOperate;

import java.util.ArrayList;
import java.util.List;

/**
 * @author fgs
 * @date 2020/8/26
 * @description
 **/
public class DataProvider {

    public static  List<MessageInfo> getMessageList(){
        List<MessageInfo> list = new ArrayList<>();
        MessageInfo messageInfo;
        messageInfo = new MessageInfo();
        messageInfo.title = "交易完成" ;
        messageInfo.createTime = "2020-02-04 12:24:11";
        messageInfo.content = "单号为H202005061212122432的订单交易完成";
        messageInfo.type = 1;
        list.add(messageInfo);


        messageInfo = new MessageInfo();
        messageInfo.title = "交易取消" ;
        messageInfo.createTime = "2020-02-04 12:24:11";
        messageInfo.content = "单号为H202005061212122432的订单交易取消";
        messageInfo.type = 1;
        list.add(messageInfo);


        messageInfo = new MessageInfo();
        messageInfo.title = "标题" ;
        messageInfo.createTime = "2020-02-04 12:24:11";
        messageInfo.content = "我是消息内容";
        messageInfo.type = 0;
        list.add(messageInfo);

        messageInfo = new MessageInfo();
        messageInfo.title = "交易完成" ;
        messageInfo.createTime = "2020-02-04 12:24:11";
        messageInfo.content = "单号为H202005061212122432的订单交易完成";
        messageInfo.type = 0;
        list.add(messageInfo);

//        messageInfo = new MessageInfo();
//        messageInfo.title = "交易取消" ;
//        messageInfo.createTime = "2020-02-04 12:24:11";
//        messageInfo.content = "单号为H202005061212122432的订单交易取消";
//        messageInfo.type = 1;
//        list.add(messageInfo);
//
//
//        messageInfo = new MessageInfo();
//        messageInfo.title = "标题" ;
//        messageInfo.createTime = "2020-02-04 12:24:11";
//        messageInfo.content = "我是消息内容";
//        messageInfo.type = 0;
//        list.add(messageInfo);
//
//        messageInfo = new MessageInfo();
//        messageInfo.title = "交易完成" ;
//        messageInfo.createTime = "2020-02-04 12:24:11";
//        messageInfo.content = "单号为H202005061212122432的订单交易完成";
//        messageInfo.type = 0;
//        list.add(messageInfo);
//
//
//        messageInfo = new MessageInfo();
//        messageInfo.title = "交易取消" ;
//        messageInfo.createTime = "2020-02-04 12:24:11";
//        messageInfo.content = "单号为H202005061212122432的订单交易取消";
//        messageInfo.type = 1;
//        list.add(messageInfo);
//
//
//        messageInfo = new MessageInfo();
//        messageInfo.title = "标题" ;
//        messageInfo.createTime = "2020-02-04 12:24:11";
//        messageInfo.content = "我是消息内容";
//        messageInfo.type = 0;
//        list.add(messageInfo);
//
//        messageInfo = new MessageInfo();
//        messageInfo.title = "交易完成" ;
//        messageInfo.createTime = "2020-02-04 12:24:11";
//        messageInfo.content = "单号为H202005061212122432的订单交易完成";
//        messageInfo.type = 0;
//        list.add(messageInfo);

        return list;
    }

    public static List<OrderOperateInfo> getTopOrderOperateList(OrderInfo orderInfo) {
        List<OrderOperateInfo> list = new ArrayList<>();
        OrderOperateInfo operateInfo;

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="确认装车";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="确认交货";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="调整重量";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="调整价格";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        return list;
    }

    public static List<OrderOperateInfo> getBottomOrderOperateList(OrderInfo orderInfo) {
        List<OrderOperateInfo> list = new ArrayList<>();
        OrderOperateInfo operateInfo;

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="确认装车";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="确认交货";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="调整重量";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        operateInfo = new OrderOperateInfo();
        operateInfo.operate ="调整价格";
        operateInfo.orderInfo = orderInfo;
        operateInfo.iOrderOperate = new DeliveryConfirmOperate();
        list.add(operateInfo);

        return list;
    }

    public static List<DetailInfo> getPaymentDetailList() {
        List<DetailInfo> list = new ArrayList<>();

        DetailInfo detailInfo;
        DetailItemInfo detailItemInfo;

        detailInfo = new DetailInfo();

        detailInfo.title = "货源单号：20200825123654";
        detailInfo.topLeftText = "调度单号：20200825123654";
        detailInfo.topMiddleText = "计算状态：未计算";

        detailInfo.infoList = new ArrayList<>();
        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "成交单价：";
        detailItemInfo.content = "6000.00（元/吨）";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "成交金额：";
        detailItemInfo.content = "6000.00（元/吨）";
        detailInfo.infoList.add(detailItemInfo);


        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "委托人：";
        detailItemInfo.content = "李典";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "委托人电话：";
        detailItemInfo.content = "17184032761";
        detailInfo.infoList.add(detailItemInfo);

        detailInfo.bottomLeftText = "发单人：张三";
        detailInfo.bottomRightText = "货物类型：金属矿石";

        list.add(detailInfo);


        detailInfo = new DetailInfo();
        detailInfo.spanCount = 2;
        detailInfo.title = "重量信息";
        detailInfo.infoList = new ArrayList<>();
        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "成交重量：";
        detailItemInfo.content = "10吨";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "装车重量：";
        detailItemInfo.content = "10吨";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "";
        detailItemInfo.content = "";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "确认装车重量：";
        detailItemInfo.content = "10吨";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "亏吨重量：";
        detailItemInfo.content = "10吨";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "收货重量：";
        detailItemInfo.content = "10吨";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "";
        detailItemInfo.content = "";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "确认收货重量：";
        detailItemInfo.content = "10吨";
        detailInfo.infoList.add(detailItemInfo);

        list.add(detailInfo);

        detailInfo = new DetailInfo();
        detailInfo.operateText = "查看";
        detailInfo.title = "司机信息";
        detailInfo.infoList = new ArrayList<>();
        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "姓名：";
        detailItemInfo.content = "张飞";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "车牌号：";
        detailItemInfo.content = "冀C12352";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "联系方式：";
        detailItemInfo.content = "17184032761";
        detailInfo.infoList.add(detailItemInfo);

        list.add(detailInfo);

        detailInfo = new DetailInfo();
        detailInfo.title = "时间信息";
        detailInfo.infoList = new ArrayList<>();

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "抢单时间：";
        detailItemInfo.content = "2020-08-12 12:25:22";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "创建时间：";
        detailItemInfo.content = "2020-08-12 12:25:22";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "发单时间：";
        detailItemInfo.content = "2020-08-12 12:25:22";
        detailInfo.infoList.add(detailItemInfo);

        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "装车时间：";
        detailItemInfo.content = "2020-08-12 12:25:22";
        detailInfo.infoList.add(detailItemInfo);


        detailItemInfo = new DetailItemInfo();
        detailItemInfo.title = "收货时间：";
        detailItemInfo.content = "2020-08-12 12:25:22";
        detailInfo.infoList.add(detailItemInfo);
        list.add(detailInfo);

        return list;
    }
}
